<#assign tit><#if _oper='add'>新增<#else>修改</#if>租箱</#assign>
<@page.html title=tit>
<div style="width:450px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th>门店</th>
          <td><#if _oper='add'><select name="shopCode"><#if shopName??><#list shopName as t><option value="${t.id}"<#if code.shopCode?? && code.shopCode=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select><#else><input type="hidden" name="shopCode" value="${code.shopCode!}">${code.shopCode!} - <@value type="shopName" key="${code.shopCode!}"/></#if></td>
        </tr>
        <tr>
          <th width="25%">箱号</th>
          <td width="75%"><#if _oper='add'><input type="text" name="code" value="${code.code!}" req="箱号" size="10" maxlength="10"> - <input type="text" name="code2" value="" size="10" maxlength="10"><#else><input type="hidden" name="code" value="${code.code!}">${code.code!}</#if></td>
        </tr>
        <tr>
          <th>名称</th>
          <td><input type="text" name="chName" value="${code.chName!}" size="26" maxlength="50"></td>
        </tr>
        <tr>
          <th>押金</th>
          <td><input type="text" name="deposit" value="${code.deposit!}" size="10" maxlength="10"></td>
        </tr>
        <tr>
          <th>年租金</th>
          <td><input type="text" name="yearFee" value="${code.yearFee!}" size="10" maxlength="10"></td>
        </tr>
        <tr>
          <th>月租金</th>
          <td><input type="text" name="monthFee" value="${code.monthFee!}" size="10" maxlength="10"></td>
        </tr>
        <tr>
          <th>类型</th>
          <td><select name="useType"><#if useType??><#list useType as t><option value="${t.id}"<#if code.useType?? && code.useType=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>备注</th>
          <td><textarea name="note" cols="30" rows="3">${code.note!}</textarea></td>
        </tr>
        <tr>
          <th>状态</th>
          <td><input type="radio" name="status" id="enable_1" value="1"<#if code.status=1> checked</#if>><label for="enable_1">正常</label>
            <input type="radio" name="status" id="enable_2" value="2"<#if code.status!=1> checked</#if>><label for="enable_2">停用</label></td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>